#!/usr/bin/env bash
# SPDX-License-Identifier: MulanPSL-2.0+
# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved.

# GITCACHE_HOST and GITCACHE_PORT parameters come from gitcache_host and gitcache_port in the job.yaml file you submitted.
# If job.yaml does not have these two parameters, git will use the local proxy cache,
# GITCACHE_HOST defaults to the local ip, GITCACHE_PORT default port is 5000
. ../defconfig.sh

docker_skip_rebuild "alpine:crystal-shards"

load_cci_defaults

docker build --build-arg GITCACHE_HOST=$GITCACHE_HOST --build-arg GITCACHE_PORT=$GITCACHE_PORT -t alpine:crystal-shards .
